﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Htss.Platform.Data;


namespace DreamBox.BLL.Picture
{
    class Upload
    {
        /// <summary>
        /// 添加图片
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public bool Add(string ImgUrl,int UserID)
        {
            DbAction action = new DbAction("dbox_Picture");
            action.SetFields("ImgUrl", ImgUrl);
            action.SetFields("Title", "");
            action.SetFields("Description", "");
            action.SetFields("UploadDate", DateTime.Now);
            action.SetFields("UserID", UserID);
            action.SetFields("Plus", 0);
            return action.Insert();
        }
    }
}
